import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import("@/views/Login")
  },
  {
    path: '/index',
    component: () => import("@/views/Index")
  },
  {
    path: '/oss',
    component: () => import("@/views/Oss")
  },
  {
    path:'/config',
    component:()=>import("@/views/MenuConfigGenerator")
  },
  {
    path:'/child_config',
    component:()=>import("@/views/ChildMenuConfigGenerator")
  },
  {
    path:'/compete_dialog',
    component:()=>import("@/views/CompeteDialog/CompeteDialog.vue")
  },
  {
    path:'/commom_echarts',
    component:()=>import("@/components/CustomComponents/common_echarts.vue")
  },
  {
    path:'/card',
    component:()=>import("@/components/Card/Card.vue")
  }

]
const router = new VueRouter({
  //hash  history
  mode: "hash",
  base: process.env.BASE_URL,
  routes
})

export default router